﻿<ContentDialog
    x:Class="InTheHand.UI.ApplicationSettings.AboutDialog"
    x:Uid="AboutDialog"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:InTheHand.UI.ApplicationSettings.About._81"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:converters="using:InTheHand.UI.Converters"
    mc:Ignorable="d"
    Title="ABOUT"
    FullSizeDesired="True"
    PrimaryButtonText="owned"
    IsPrimaryButtonEnabled="False"
    RequestedTheme="Dark"
    SecondaryButtonText="rate and review"
    PrimaryButtonClick="ContentDialog_PrimaryButtonClick"
    SecondaryButtonClick="ContentDialog_SecondaryButtonClick">

    <ContentDialog.Resources>
        <converters:PackageVersionConverter x:Key="PackageVersionConverter"/>
        <converters:StringCaseConverter x:Key="StringCaseConverter"/>
    </ContentDialog.Resources>
    <StackPanel VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
        <Image Source="{Binding Logo}" Stretch="None" HorizontalAlignment="Right" Margin="0,-84,0,-52"/>
        
    <TextBlock Text="{Binding DisplayName}" Style="{ThemeResource SubheaderTextBlockStyle}" />
            
        <StackPanel Orientation="Horizontal" Margin="0,5">
                <TextBlock x:Uid="By" Text="By" />
                <TextBlock Margin="6,0,100,0" Text="{Binding PublisherDisplayName}"/>
        </StackPanel>
        
        <StackPanel Orientation="Horizontal">
            <TextBlock x:Uid="Version" Text="Version" Foreground="{ThemeResource ApplicationSecondaryForegroundThemeBrush}" />
            <TextBlock Margin="6,0,0,0" Text="{Binding Id.Version, Converter={StaticResource PackageVersionConverter}}" Foreground="{ThemeResource ApplicationSecondaryForegroundThemeBrush}"/>
        </StackPanel>
        
        <TextBlock Margin="0,10,0,20" Text="{Binding Description}" TextWrapping="Wrap"/>
        <HyperlinkButton x:Name="PublisherHyperlink" Content="More from publisher"  FontSize="{StaticResource TextStyleLargeFontSize}"  Click="PublisherButton_Click"/>
    </StackPanel>
</ContentDialog>
